package com.example.springbootlistener;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class SpringBootListenerApplication {

    public static void main(String[] args) {
//        ConfigurableApplicationContext context = SpringApplication.run(SpringBootListenerApplication.class, args);
        SpringApplication springApplication = new SpringApplication(SpringBootListenerApplication.class);
        springApplication.addListeners(new SecondListener());
        springApplication.run(args);
    }

}
